'use strict';
const { app, Menu, Tray } = require('electron');
const path = require('path');

app.on('ready', function() {
    var check = require('./core/check.js');
    var notify = require('./core/notify.js');
    var client = check.EmailChecker({
        user: 'lucifer.li@bstek.com',
        pass: 'p@ssw0rd',
        host: 'imap.ym.163.com',
        port: 993
    });
    client.setMailDoneListener(function(mails) {
        notify.newMsg(mails);
    }).go();
});
